package com.pactera.miyuangroup.vo.convertor;

import com.pactera.miyuangroup.db.entity.EquipmentAudit;
import com.pactera.miyuangroup.db.entity.LoginUser;
import com.pactera.miyuangroup.db.entity.VendorInfo;
import com.pactera.miyuangroup.vo.response.web.QueryVenderCodifyAuditRes;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

/**
 * 审核信息
 *
 * @author Wangwu
 * @create 2018-04-23 下午3:51
 **/
@Mapper(componentModel = "spring")
public interface VenderCodifyAuditConvert {


    //支持多对象合并
    @Mappings({
            @Mapping(source = "equipmentAudit.id", target = "id"),
            @Mapping(source = "equipmentAudit.remarks", target = "remarks"),
    })
    QueryVenderCodifyAuditRes convert2QueryVenderCodifyAudit(EquipmentAudit equipmentAudit, LoginUser loginUser, VendorInfo vendorInfo);

}
